See Also

CalendarPattern Class  | CalendarPattern Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

JScript

Show All

mappedTimeUnit
The time unit represented by each boolean value.
wholeTimeUnit
Time unit represented by the pattern array.
timePattern
Time pattern array.
See Also Requirements Languages dotnetCHARTING Send comments on this topic.

CalendarPattern Constructor(TimeInterval,TimeInterval,Boolean[])

Initializes a new instance of the CalendarPattern class with time units and a pattern.

[Visual Basic]
Public Function New( _    ByVal mappedTimeUnit As TimeInterval, _    ByVal wholeTimeUnit As TimeInterval, _    ByVal timePattern() As Boolean _ )
[C#]
public CalendarPattern(    TimeInterval mappedTimeUnit,    TimeInterval wholeTimeUnit,    bool[] timePattern );
[JScript]
public function CalendarPattern(    mappedTimeUnit : TimeInterval,    wholeTimeUnit : TimeInterval,    timePattern : boolean[] );

Parameters

mappedTimeUnit
The time unit represented by each boolean value.
wholeTimeUnit
Time unit represented by the pattern array.
timePattern
Time pattern array.

Example

This instantiates a new CallendarPattern of a week marking the saturday and sunday. It uses the PatternFromString method to simplify adding a pattern by using a string.

[C#] 

CalendarPattern newPattern = new CalendarPattern(TimeInterval.Day,TimeInterval.Week,CalendarPattern.PatternFromString("1000001"));

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CalendarPattern Class  | CalendarPattern Members  | Overload List

 

 


2002 - 2004 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.